<?php
namespace app\api\controller;

use app\BaseController;
use think\exception\HttpException;

class Record extends BaseController
{
    public function lists()
    {
        
        return $this->version();
    }

    /**
     * 手动添加账单
     *
     * @return void
     * @author sunhaoqiang(shqdev@163.com)
     * @time 2020-01-17 10:43
     */
    public function add()
    {

        $versions = [
            '10000',
            '10001',
            '10002',
            '10008',
            '20001',
        ];

        // throw new \Exception('异常消息');
        
        return $this->version($versions);
    }

    /**
     * 上传excel账单（微信、支付宝）
     *
     * @return string
     * @author sunhaoqiang(shqdev@163.com)
     * @time 2020-01-17 10:43
     */
    public function upadd()
    {
        return 'Record add';
    }

    public function edit()
    {
        return 'Record,edit';
    }

    public function del()
    {
        return 'Record,del';
    }
}
